import { Component, OnInit } from '@angular/core';
import { ToptipsService } from 'ngx-weui';
import { Router, ActivatedRoute } from '@angular/router';

@Component({
	templateUrl: './rechargeSuccess.html',
	styleUrls: ['./recharge.component.less'],
})
export class RechargeSuccessComponent implements OnInit {
    travelOrderId;
	constructor(private srv: ToptipsService,private router:Router ,private activeRoute:ActivatedRoute) {
        this.travelOrderId = this.activeRoute.snapshot.queryParams['travelOrderId'];
	}
    ngOnInit() {}
    toDetail(){
        this.router.navigate(['/orderDetail'], {
            queryParams:{
                travelOrderId:this.travelOrderId
            }
        });
    }
}
